
<style>
    .b-num {
        width: 20px;
        height: 20px;
        position: absolute;
        margin-top: -5px;
        margin-left: 5px;
        border-radius: 10px;
        font-size: 12px;
        color: #ffffff;
        background-color: #d45d51;
        display: inline-block;
    }
    .b-num-sum{padding: 4px;}
    .active{color: red}
</style>


            <ul class="center_ul">
                <li class="center_li"><a href="{:U('User/person')}">用户订单</a></li>
                <li class="center_li"><a href="{:U('User/yuyue')}">我的预约</a></li>
                <li class="center_li"><a href="{:U('User/xuqiu')}">装修需求</a></li>
                <li class="center_li"><a href="{:U('User/shoucang')}">我的收藏</a></li>
                <li class="center_li"><a href="{:U('User/dizhi')}">联系地址</a></li>
                  <if condition="$_SESSION['zhuangtai'] eq 0">
                <li class="center_li"><a href="{:U('User/ziliao1')}">我的资料</a></li>
                </if>
              <!--   <li class="center_li"><a href="{:U('User/shouhou')}">售后</a></li> -->
                <li class="center_li"><a href="{:U('User/mima')}">修改密码</a></li>
                <li class="center_li"><a href="{:U('User/fankui')}">意见反馈</a></li>
                   <li class="center_li">
            <a href="{:U('User/message')}">我的消息
                <gt name="num" value="0">
                    <div class="b-num">
                        <div class="b-num-sum">{$num}</div>
                    </div>
                </gt>
            </a>
        </li>
                <li class="center_li"><hr></li>
                <if condition="$_SESSION['zhuangtai'] eq 1">
                <li class="center_li"><a href="{:U('User/dingdan')}">设计师订单</a></li>
                <li class="center_li"><a href="{:U('User/ziliao')}">设计师资料</a></li>
                <li class="center_li"><a href="{:U('User/anli')}">设计师案例</a></li>
                <li class="center_li"><a href="{:U('User/release')}">我的发布圈子</a></li>
                </if>
            </ul>




               <script type="text/javascript">
        $(document).ready(function(){
                $(function(){
                    $('.center_li a').each(function(){
                      
                        if($(this)[0].href==String(window.location))
                         $(this).parent().addClass('active');
                        
                    });
                       
                });
  
        });   
            

    </script>